package trabalho.doo3.j2me.midlet;

import com.sun.lwuit.plaf.UIManager;
import com.sun.lwuit.util.Resources;
import java.io.IOException;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;
import trabalho.doo3.j2me.telas.TelaLogin;
import trabalho.doo3.j2me.telas.TelaReservas;

/**
 * @author Matheus
 */
public class Midlet extends MIDlet {

    public void startApp() {
         
//        try {
//            Resources res = Resources.open("/LWUITtheme.res");
////            //Resources res = Resources.open("/theme/LWUITtheme.res");
//            UIManager.getInstance().setThemeProps(res.getTheme("LWUITtheme"));
//        } catch (IOException ex) {
//            ex.printStackTrace();
//       }
        com.sun.lwuit.Display.init(this);
        Display display = Display.getDisplay(this);
        TelaLogin telaLogin = new TelaLogin("Tela de login", this);
        display.setCurrent(telaLogin);
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }
}
